package com.wlz.rabbit.listener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.core.MessageListener;

/**
 * @author wlz
 * @date 2022-06-28  9:03 下午
 */
@Slf4j
public class FanoutListener implements MessageListener {
    @Override
    public void onMessage(Message message) {
        log.info("FanoutListener 接收到的消息为: {}" , new String(message.getBody()));
    }
}
